package com.hao.tool.web.module.navigation.controller;

import com.hao.tool.common.util.NetworkUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/**
 * description
 *
 * @author RuiHaoZ on GZ.cmhk
 * @date 2019-11-22 22:17
 */
@Slf4j
@Controller
@RequestMapping("/flower")
public class FlowerController {


    @RequestMapping("/get")
    public ModelAndView get(HttpServletRequest request) {
        log.info("「{}」进入页面", NetworkUtil.getIpAddress(request));
        ModelAndView mv = new ModelAndView("flower/gettext");
        return mv;
    }

    @RequestMapping("/ocr")
    public ModelAndView ocr(HttpServletRequest request) {
        log.info("「{}」进入页面", NetworkUtil.getIpAddress(request));
        ModelAndView mv = new ModelAndView("flower/ocrtext");
        return mv;
    }

}
